package grape.house.rest.client.housetag;

import grape.common.service.trans.ITransService;
import grape.house.service.housetag.po.HouseTag;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Created by yangwei
 * Created at 2020/9/28
 */
@Component
@FeignClient(value = "grape-house")
public interface HouseTagClient extends ITransService<String,String> {


    /**
     * 根据用户登录标识查询用户详情
     * @param type
     * @param key
     * @return
     */
    @GetMapping(value = "/house/housetag/inner/trans")
    @Override
    public String trans(@RequestParam String type, @RequestParam String key);

    @GetMapping(value = "/house/housetag/inner/trans/support")
    @Override
    public boolean support(@RequestParam String type);

    @GetMapping("/house/housetag/inner/getHouseTagById")
    public HouseTag getHouseTagById(@RequestParam String id);

    @GetMapping("/house/housetag/inner/getHouseTagByCode")
    public HouseTag getHouseTagByCode(@RequestParam String code);

}
